<!DOCTYPE html>

<html>
    <head>
        <title>#{get 'title' /}</title>
        <meta charset="${_response_encoding}">
        <link rel="stylesheet" media="screen" href="@{'/public/stylesheets/main.css'}">
        #{get 'moreStyles' /}
        <link rel="shortcut icon" type="image/png" href="@{'/public/images/NETS_Logo.png'}">
        <script src="@{'/public/javascripts/jquery-1.3.2.min.js'}" type="text/javascript" charset="${_response_encoding}"></script>
        <script src="@{'/public/javascripts/sessvars.js'}" type="text/javascript" charset="${_response_encoding}"></script> 
        #{get 'moreScripts' /}
    </head>
    <body>
        
        <div id="header">
            <h1>Test Center - Booking Demo</h1>
            #{if user?.id}
                <div id="options">
                    Connected as ${user.usermail}
                    <br>
                    <a href="@{Komponents.index()}">Komponent List</a>
                    |
                    <a href="@{Komponents.settings()}">User Settings</a>
                    |
                    <a href="@{Komponents.settings()}">User Settings</a>
                    <br>
                    <a href="@{Komponents.current_bookings()}">Current Bookings</a>
                    |
                    <a href="@{Komponents.current_bookings()}">Project Bookings</a>
                    |
                    <a href="@{Application.logout()}">Logout</a>
                </div>
            #{/if}
            
            #{if admin?.id}
                <div id="options">
                    Connected as ${admin.adminmail}
                    <br>
                    <a href="@{Komponents.index()}">Komponent List</a>
                    |
                    <a href="@{Komponents.settings()}">User Settings</a>
                    |
                    <a href="@{Komponents.settings()}">User Settings</a>
                    <br>
                    <a href="@{Komponents.current_bookings()}">Current Bookings</a>
                    |
                    <a href="@{Komponents.current_bookings()}">Project Bookings</a>
                    |
                    <a href="@{Application.logout()}">Logout</a>
                </div>
            #{/if}
        </div>
        
        <div id="content">
            #{if flash.error}
                <p class="fError">
                    <strong>${flash.error}</strong>
                </p>
            #{/if}
            #{if flash.success}
                <p class="fSuccess">
                    <strong>${flash.success}</strong>
                </p>
            #{/if}
            
            #{doLayout /}
        </div>
        
        <div id="footer">
            Created by Test Consultancy - NETS 
        </div>
        
    </body>
</html>
